﻿using Iesi.Collections.Generic;
using Newtonsoft.Json;
using System;

namespace Romantics.Domain.Objects
{
    public class PhotoAlbum : NamedEntity
    {
        public virtual string Description { get; set; }
        public virtual Hike Hike { get; set; }
        public virtual bool Published { get; set; }
        public virtual string Meta { get; set; }

        private ISet<PhotoAlbumItem> items = new HashedSet<PhotoAlbumItem>();

        [JsonIgnore]
        public virtual ISet<PhotoAlbumItem> Items
        {
            get { return items; }
            set { items = value; }
        }
    }
}
